package com.wengzw.dao;

import com.wengzw.po.Customer;
import com.wengzw.po.User;
import com.wengzw.vo.CustomerVo;
import com.wengzw.vo.UserVo;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
@Primary
public interface UserMapper {
    /**
     * 根据登陆信息查询用户信息
     */
    @Select("select * from sys_usr where user_name = #{user_name}")
    
    User findUserByLoginName(String user_name);
  //查询客户列表


    List<User> findUserList(UserVo userVo);

     //添加客户

     int addUser(User user);

     //修改客户

     int updateUser(User user);

     //删除客户
     int deleteById(Integer user_id);

     //根据id查询用户
     @Select("select * from sys_usr where user_id = #{user_id}")
     User findUserByID(Integer user_id);
}

